#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int main()
{
	int n = 0;
	scanf("%d", &n);
	int num = 0;
	int arr[100001] = { 0 };
	int i = 0;
	for (i = 0; i < n; i++)
	{
		scanf("%d", &num);
		arr[num] = num;
	}
	for (i = 0; i < 100001; i++)
	{
		if (arr[i] != 0)
			printf("%d ", arr[i]);
	}
	return 0;
}